// 引入LeanCloud存储
var AV = require('leancloud-storage');

// 订单
class Order extends AV.Object {
    get tradeId() {
      return this.get('tradeId');
    }
    set tradeId(value) {
      this.set('tradeId', value);
    }
    get amount() {
      return this.get('amount');
    }
    set amount(value) {
      this.set('amount', value);
    }
    get user() {
      return this.get('user');
    }
    set user(value) {
      this.set('user', value);
    }
    get productDescription() {
      return this.get('productDescription');
    }
    set productDescription(value) {
      this.set('productDescription', value);
    }
    get Article() {
      return this.get('Article');
    }
    set Article(value) {
      this.set('Article', value);
    }
    get status() {
      return this.get('status');
    }
    set status(value) {
      this.set('status', value);
    }
    get ip() {
      return this.get('ip');
    }
    set ip(value) {
      this.set('ip', value);
    }
    get tradeType() {
      return this.get('tradeType');
    }
    set tradeType(value) {
      this.set('tradeType', value);
    }
    get prepayId() {
      return this.get('prepayId');
    }
    set prepayId(value) {
      this.set('prepayId', value);
    }
    //保存对应的对铺
    get shopId(){
      return this.get('shopId')
    }
    set shopId(value){
        this.set('shopId',value)
    }
  }
  
  AV.Object.register(Order);
  module.exports = Order;